<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.17"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>QuEST: PauliHamil Struct Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="style.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand"><img alt="Logo" src="logo.png"/></a>
                    <a class="navbar-brand"><b>QuEST</b> v3.2.0<br>The Quantum Exact Simulation Toolkit</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">PauliHamil Struct Reference<div class="ingroups"><a class="el" href="group__type.html">Data structures</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Represents a weighted sum of pauli products.  
 <a href="structPauliHamil.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="QuEST_8h_source.html">QuEST.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:acb49fff0e3160ea1904c9ca34408b4e1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPauliHamil.html#acb49fff0e3160ea1904c9ca34408b4e1">numQubits</a></td></tr>
<tr class="memdesc:acb49fff0e3160ea1904c9ca34408b4e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of qubits for which this Hamiltonian is defined.  <a href="structPauliHamil.html#acb49fff0e3160ea1904c9ca34408b4e1">More...</a><br /></td></tr>
<tr class="separator:acb49fff0e3160ea1904c9ca34408b4e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a737e46b40ef8990cf004d22eb9dbe2e4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPauliHamil.html#a737e46b40ef8990cf004d22eb9dbe2e4">numSumTerms</a></td></tr>
<tr class="memdesc:a737e46b40ef8990cf004d22eb9dbe2e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of terms in the weighted sum, or the number of Pauli products.  <a href="structPauliHamil.html#a737e46b40ef8990cf004d22eb9dbe2e4">More...</a><br /></td></tr>
<tr class="separator:a737e46b40ef8990cf004d22eb9dbe2e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b8d38c403553c07ceddcd40c46ce6c8"><td class="memItemLeft" align="right" valign="top">enum <a class="el" href="group__type.html#ga1c703cf89629e4e9c7023cd402d67028">pauliOpType</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPauliHamil.html#a4b8d38c403553c07ceddcd40c46ce6c8">pauliCodes</a></td></tr>
<tr class="memdesc:a4b8d38c403553c07ceddcd40c46ce6c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Pauli operators acting on each qubit, flattened over every operator.  <a href="structPauliHamil.html#a4b8d38c403553c07ceddcd40c46ce6c8">More...</a><br /></td></tr>
<tr class="separator:a4b8d38c403553c07ceddcd40c46ce6c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1c6c9f6299cf83bbba88123216c3cac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__type.html#ga7740e349b4f8bae6451547680f0ce2d6">qreal</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPauliHamil.html#ac1c6c9f6299cf83bbba88123216c3cac">termCoeffs</a></td></tr>
<tr class="memdesc:ac1c6c9f6299cf83bbba88123216c3cac"><td class="mdescLeft">&#160;</td><td class="mdescRight">The coefficient of each Pauli product. This is a length <code>numSumTerms</code> array.  <a href="structPauliHamil.html#ac1c6c9f6299cf83bbba88123216c3cac">More...</a><br /></td></tr>
<tr class="separator:ac1c6c9f6299cf83bbba88123216c3cac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents a weighted sum of pauli products. </p>
<dl class="section author"><dt>Author</dt><dd>Tyson Jones </dd></dl>

<p class="definition">Definition at line <a class="el" href="QuEST_8h_source.html#l00158">158</a> of file <a class="el" href="QuEST_8h_source.html">QuEST.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="acb49fff0e3160ea1904c9ca34408b4e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb49fff0e3160ea1904c9ca34408b4e1">&#9670;&nbsp;</a></span>numQubits</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PauliHamil::numQubits</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The number of qubits for which this Hamiltonian is defined. </p>

<p class="definition">Definition at line <a class="el" href="QuEST_8h_source.html#l00168">168</a> of file <a class="el" href="QuEST_8h_source.html">QuEST.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="QuEST__common_8c_source.html#l00698">applyExponentiatedPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01147">createPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01253">initPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01328">reportPauliHamil()</a>, <a class="el" href="utilities_8cpp_source.html#l01062">setRandomPauliSum()</a>, <a class="el" href="test__data__structures_8cpp_source.html#l00255">TEST_CASE()</a>, <a class="el" href="utilities_8cpp_source.html#l01095">toQMatrix()</a>, <a class="el" href="QuEST__validation_8c_source.html#l00624">validateMatchingQuregPauliHamilDims()</a>, and <a class="el" href="QuEST__validation_8c_source.html#l00619">validatePauliHamil()</a>.</p>

</div>
</div>
<a id="a737e46b40ef8990cf004d22eb9dbe2e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a737e46b40ef8990cf004d22eb9dbe2e4">&#9670;&nbsp;</a></span>numSumTerms</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PauliHamil::numSumTerms</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The number of terms in the weighted sum, or the number of Pauli products. </p>

<p class="definition">Definition at line <a class="el" href="QuEST_8h_source.html#l00166">166</a> of file <a class="el" href="QuEST_8h_source.html">QuEST.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="QuEST__common_8c_source.html#l00698">applyExponentiatedPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l00819">applyPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l00970">calcExpecPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01147">createPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01253">initPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01328">reportPauliHamil()</a>, <a class="el" href="utilities_8cpp_source.html#l01062">setRandomPauliSum()</a>, <a class="el" href="test__data__structures_8cpp_source.html#l00255">TEST_CASE()</a>, <a class="el" href="utilities_8cpp_source.html#l01095">toQMatrix()</a>, and <a class="el" href="QuEST__validation_8c_source.html#l00619">validatePauliHamil()</a>.</p>

</div>
</div>
<a id="a4b8d38c403553c07ceddcd40c46ce6c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b8d38c403553c07ceddcd40c46ce6c8">&#9670;&nbsp;</a></span>pauliCodes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__type.html#ga1c703cf89629e4e9c7023cd402d67028">pauliOpType</a>* PauliHamil::pauliCodes</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The Pauli operators acting on each qubit, flattened over every operator. </p>
<p>This is a length <code>numSumTerms*numQubits</code> array </p>

<p class="definition">Definition at line <a class="el" href="QuEST_8h_source.html#l00162">162</a> of file <a class="el" href="QuEST_8h_source.html">QuEST.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="QuEST__common_8c_source.html#l00698">applyExponentiatedPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l00819">applyPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l00970">calcExpecPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01147">createPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01169">createPauliHamilFromFile()</a>, <a class="el" href="QuEST_8c_source.html#l01163">destroyPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01253">initPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01328">reportPauliHamil()</a>, <a class="el" href="utilities_8cpp_source.html#l01062">setRandomPauliSum()</a>, <a class="el" href="test__calculations_8cpp_source.html#l00183">TEST_CASE()</a>, <a class="el" href="utilities_8cpp_source.html#l01095">toQMatrix()</a>, and <a class="el" href="QuEST__validation_8c_source.html#l00619">validatePauliHamil()</a>.</p>

</div>
</div>
<a id="ac1c6c9f6299cf83bbba88123216c3cac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1c6c9f6299cf83bbba88123216c3cac">&#9670;&nbsp;</a></span>termCoeffs</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__type.html#ga7740e349b4f8bae6451547680f0ce2d6">qreal</a>* PauliHamil::termCoeffs</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The coefficient of each Pauli product. This is a length <code>numSumTerms</code> array. </p>

<p class="definition">Definition at line <a class="el" href="QuEST_8h_source.html#l00164">164</a> of file <a class="el" href="QuEST_8h_source.html">QuEST.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="QuEST__common_8c_source.html#l00698">applyExponentiatedPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l00819">applyPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l00970">calcExpecPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01147">createPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01169">createPauliHamilFromFile()</a>, <a class="el" href="QuEST_8c_source.html#l01163">destroyPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01253">initPauliHamil()</a>, <a class="el" href="QuEST_8c_source.html#l01328">reportPauliHamil()</a>, <a class="el" href="utilities_8cpp_source.html#l01062">setRandomPauliSum()</a>, <a class="el" href="test__data__structures_8cpp_source.html#l00255">TEST_CASE()</a>, and <a class="el" href="utilities_8cpp_source.html#l01095">toQMatrix()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="QuEST_8h_source.html">QuEST.h</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
</body>
        <script type="text/javascript" src="boot.js"></script>
</html>
